import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/emergency_res_goods_detail_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/emergency_res_goods_detail_entity.g.dart';

@JsonSerializable()
class EmergencyResGoodsDetailEntity {

	EmergencyResGoodsDetailEntity();

	factory EmergencyResGoodsDetailEntity.fromJson(Map<String, dynamic> json) => $EmergencyResGoodsDetailEntityFromJson(json);
	String? companyCode;
	String? createBy;
	String? createById;
	String? createDate;
	String? deleted;
	String? id;
	String? materialClassification;
	String? materialClassificationName;
	String? materialName;
	String? materialPhotos;
	String? materialPointId;
	String? materialPointIdName;
	String? purpose;
	int? quantity;
	String? transportationAndStorageRequirements;
	String? updateBy;
	String? updateById;
	String? updateDate;
	String? usageRecord;
	List<EmergencyResGoodsDetailUsedRecordVos>? usedRecordVos;
	String? validityPeriod;

	Map<String, dynamic> toJson() => $EmergencyResGoodsDetailEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class EmergencyResGoodsDetailUsedRecordVos {

	EmergencyResGoodsDetailUsedRecordVos();

	factory EmergencyResGoodsDetailUsedRecordVos.fromJson(Map<String, dynamic> json) => $EmergencyResGoodsDetailUsedRecordVosFromJson(json);
	String? date;
	int? num;

	Map<String, dynamic> toJson() => $EmergencyResGoodsDetailUsedRecordVosToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
